<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class Tk_QuestionImportRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'courseId' => 'bail|nullable|integer|exists:tiku_course,id',
            'knowledgeId' => 'bail|required|integer|exists:tiku_knowledge,id',
            'province' => 'bail|required|string',
            'city' => 'bail|nullable|string',
            'pathType' => 'bail|nullable|integer|in:1,2',
            'filePath' => 'bail|required|string'
        ];
    }
}
